import router from '@/router';
import {
	service,
	request
} from '../../../../api/service.js';

export default {
	namespaced: true,
	state: {

	},

	actions: {
		async LoadType({
			dispatch
		}, {
			pramterEnums = []
		} = {}) {
			var response = await request({
				url: 'MES/MESCommon/GetTypes',
				method: 'post',
				data: pramterEnums
			});
			if (response.status == 1) {
				return response.data;
			}
			return null;
		},
		
		async LoadTextSameValueTypes({
			dispatch
		}, {
			pramterEnums = []
		} = {}) {
			var response = await request({
				url: 'MES/MESCommon/GetTextSameValueTypes',
				method: 'post',
				data: pramterEnums
			});
			if (response.status == 1) {
				return response.data;
			}
			return null;
		},
	},
	mutations: {
		get(state) {
			// state.assemblyHeader =
		}
	},

};
